import request from "@/services";


// // 获取轮播图列表
// export const getBannerList = ()=>request({url:'/banner/list'})
// // 删除轮播图
// export const delBanner = (bannerid)=>request({url:'/banner/delete',params:{bannerid}})
// // 添加轮播图
// export const addBanner = (data)=>request({url:'/banner/add',method:'post',data})
// 获取轮播图列表
export const getBannerList = ()=>request.get('banner/list')
//删除轮播图
export const delbanner = (bannerid) => request.get('/banner/delete', { params: { bannerid } })
// 添加
export const addbanner = (data) => request.post('/banner/add', data)
// 删除全部
export const delAll = () => request.get('/banner/removeAll')
// 更新访问状态
export const updateFlag = (data) => request.post('/banner/updateFlag', data)